package dao

import (
	"server_cluster/http/model"
)

func (d *Dao) QueryAnnouncementList() ([]*model.DbAnnouncement, error) {
	var announcementList []*model.DbAnnouncement = nil
	err := d.db.Find(&announcementList).Error
	if err != nil {
		return nil, err
	}
	return announcementList, nil
}
